<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Small_refund_cause.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_refund_cause.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '退款原因模板',
                    name: 'Small_refund_cause',
                    url: "/Small_refund_cause/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {"appId":[],"content":"","isAvailable":""},
                editFormOptions: [[{"dataKey":"distributorApplet","data":[],"title":"直营分销商","field":"appId","type":"selectList",required: true}],
                              [{"title":"内容","field":"content","type":"text",required: true}],
                              [{"dataKey":"enable","data":[],"title":"是否可用","field":"isAvailable","type":"radio",required: true}]],
                searchFormFields: {"appId":"",isAvailable:""},
                searchFormOptions: [[{"dataKey":"distributorApplet","data":[],"title":"直营分销商","field":"appId","type":"select"},{
                  field: "isAvailable",
                  title: "是否可用",
                  type: "select",
                  dataKey: "enable",
                },]],
                columns: [{field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'content',title:'内容',type:'string',width:90,align:'left',sortable:true},
                       {field:'appId',title:'直营分销商',type:'string',bind:{ key:'distributorApplet',data:[]},width:220,align:'left'},
                       {field:'isAvailable',title:'是否可用',type:'sbyte',bind:{ key:'enable',data:[]},width:90,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:90,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:190,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:80,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:190,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
